<% if published_link_contents.published == true %>
  <%= link_to_remote('make private', {:update => 'published-message_' + published_link_contents.id.to_s, :url => {:controller => 'paths', :action => 'change_visibility', :id => published_link_contents.id}, :confirm => 'Are you sure you want to hide this path from the world?'}, :class => 'admin') %>
<% else %>
  <%= link_to_remote('publish', {:update => 'published-message_' + published_link_contents.id.to_s, :url => {:controller => 'paths', :action => 'change_visibility', :id => published_link_contents.id}, :confirm => 'Are you sure you want to publish this path to the world?'}, :class => 'admin') %>
<% end %>
  